package com.bigShen.spring.official;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.springframework.web.context.support.XmlWebApplicationContext;

/**
 * @Author eddy.shen
 * @Date 2019/1/20 10:35
 **/
public class SimpleDemo {

    public static void main(String[] args) {

        new XmlBeanDefinitionReader(new DefaultListableBeanFactory())
                .loadBeanDefinitions(new ClassPathResource(""));

        new XmlWebApplicationContext();

        new ClassPathXmlApplicationContext("appContext.xml", "appContext2.xml");

        new FileSystemXmlApplicationContext("appContext.xml", "appContext2.xml");

    }

}
